import request from '@/utils/request'
// 获取月卡信息列表
export function getCardListAPI(params) {
  return request({
    url: '/parking/card/list',
    method: 'get',
    params
  })
}
// 新增月卡
export function createCardAPI(data) {
  return request({
    url: '/parking/card',
    method: 'post',
    data
  })
}
//
// 回填数据
export function getCardDetailAPI(id) {
  return request({
    url: `/parking/card/detail/${id}`
  })
}
//

// 删除月卡
export function delCardAPI(id) {
  return request({
    url: `/parking/card/${id}`,
    method: 'delete'
  })
}
// 批量删除月卡
export function delCardListAPI(idList) {
  return request({
    url: `/parking/card/${idList.join(',')}`,
    method: 'DELETE'
  })
}
